#ifndef __MY_LOG_LEVEL
#define __MY_LOG_LEVEL

namespace mylog
{
    class LogLevel
    {
        public:
        enum class value{
            UNKNOW = 0,
            DEBUG,
            INFO,
            WARN,
            ERROR,
            FATAL,
            OFF
        };
        static const char* toString(const value& level)
        {
            switch(level)
            {
                case value::DEBUG : return "DEBUG";
                case value::INFO : return "INFO";
                case value::WARN : return "WARN";
                case value::ERROR : return "ERROR";
                case value::FATAL : return "FATAL";
                case value::OFF : return "OFF";

            }
            return "UNKNOW";
        }
    };
} // namespace mylog



#endif